<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>init (PitchingAppearance)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/pitching_appearance.rb, line 9</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init</span>(<span class="ruby-identifier">gid</span>, <span class="ruby-identifier">element</span>, <span class="ruby-identifier">count</span>)
    <span class="ruby-ivar">@gid</span> = <span class="ruby-identifier">gid</span>
    <span class="ruby-ivar">@pid</span>                  = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'id'</span>]
    <span class="ruby-ivar">@pitcher_name</span>  = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'name'</span>]
    <span class="ruby-ivar">@out</span>               = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'out'</span>]
    <span class="ruby-ivar">@inn</span>               = <span class="ruby-identifier">convert_out_to_inn</span>(<span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'out'</span>])
    <span class="ruby-ivar">@er</span>                = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'er'</span>]
    <span class="ruby-ivar">@r</span>                  = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'r'</span>]
    <span class="ruby-ivar">@h</span>                 = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'h'</span>]
    <span class="ruby-ivar">@so</span>                = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'so'</span>]
    <span class="ruby-ivar">@hr</span>                = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'hr'</span>]
    <span class="ruby-ivar">@bb</span>               = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'bb'</span>]
    <span class="ruby-ivar">@w</span>                = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'w'</span>]
    <span class="ruby-ivar">@l</span>                  = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'l'</span>]
    <span class="ruby-ivar">@era</span>              = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'era'</span>]
    <span class="ruby-ivar">@note</span>            = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'note'</span>]
    <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">count</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
      <span class="ruby-ivar">@start</span> = <span class="ruby-keyword kw">true</span>
    <span class="ruby-keyword kw">else</span>
      <span class="ruby-ivar">@start</span> = <span class="ruby-keyword kw">false</span>
    <span class="ruby-keyword kw">end</span>
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>